package Factory_method_model.car;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class client {
    public static void main(String[] args) {
        System.out.println("当前为宝马");
        CarFactory factory;
        Car car;
        factory=new BmwFactory();
        car=factory.create_car();
        car.car();
        System.out.println("当前为奔驰");
        CarFactory factory1;
        Car car1;
        factory1=new BenzFactory();
        car1= factory1.create_car();
        car1.car();
    }
}
